-- GENERATED SPELL FOR [Murkgill Forager] --


function spell0_4457(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4457', 30000, 1)
end

function spell1_4457(pUnit, Event) --@Rend,n/a--
pUnit:FullCastSpellOnTarget(13443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4457', 15000, 1)
end

function Sorts_4457(pUnit, Event)
local choix_sorts_4457 = math.random(0, 1)
if choix_sorts_4457 == 0 then
pUnit:RegisterEvent('spell0_4457', 1, 1)
end
if choix_sorts_4457 == 1 then
pUnit:RegisterEvent('spell1_4457', 1, 1)
end
end

function mob4457_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4457', math.random(1500, 3000), 1)
end

function mob4457_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4457_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4457_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4457, 1, 'mob4457_Action')
RegisterUnitEvent(4457, 2, 'mob4457_Leave')
RegisterUnitEvent(4457, 3, 'mob4457_Kill')
RegisterUnitEvent(4457, 4, 'mob4457_Die')
